package com.example.take_out_order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 订单明细表
 * </p>
 *
 * @author FZ
 * @since 2024-07-09
 */
@Getter
@Setter
@TableName("tb_order_detail")
// @ApiModel(value = "OrderDetail对象", description = "订单明细表")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    // @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    // @ApiModelProperty("名字")
    @TableField("name")
    private String name;

    // @ApiModelProperty("图片")
    @TableField("image")
    private String image;

    // @ApiModelProperty("订单id")
    @TableField("order_id")
    private String orderId;

    // @ApiModelProperty("菜品id")
    @TableField("dish_id")
    private String dishId;

    // @ApiModelProperty("套餐id")
    @TableField("setmeal_id")
    private String setmealId;

    // @ApiModelProperty("口味")
    @TableField("dish_flavor")
    private String dishFlavor;

    // @ApiModelProperty("数量")
    @TableField("number")
    private Integer number;

    // @ApiModelProperty("金额")
    @TableField("amount")
    private BigDecimal amount;
}
